package com.wlz;

import org.apache.catalina.startup.Tomcat;

/**
 * @author wlz
 *
 */
public class SpringApplication {
	public static void run() throws  Exception {
		Tomcat tomcat = new Tomcat();
		tomcat.setPort(8080);
		// 告诉tomcat  web项目
		tomcat.addWebapp("/","D:\\java-space\\spring\\spring-framework-analysis\\web");

		tomcat.start();

		tomcat.getServer().await();
		//Thread.currentThread().join();
	}




}
